import Vue from 'vue'
import Router from 'vue-router'
import index from '@/views/index'
import page1 from '@/views/page1'
import page2 from '@/views/page2'
import page3 from '@/views/page3'

Vue.use(Router)

export default new Router({
  // mode: 'history',
  routes: [
    {
      path: '/',
      name: 'vue微信h5模板',
      component: index
    },
    {
      path: '/page1',
      name: '页面1',
      component: page1
    },
    {
      path: '/page2',
      name: '页面2',
      component: page2
    },
    {
      path: '/page3',
      name: '页面3',
      component: page3
    }
  ]
})
